package main;

import backtype.storm.utils.DRPCClient;

public class TestMain {
	public static void main(String[] args) {
		try {
			String drpc_host = "ec2-54-249-168-222.ap-northeast-1.compute.amazonaws.com";
			DRPCClient client = new DRPCClient(drpc_host, 3772);

			System.out.println("Connected to rpc client - issue cmds now");
			String str = client.execute("account", "{\"username\":\"test\",\"payment\":10}");
			
			System.out.println(str);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
